


			
<?php
include_once ('../../global.php');

$pre_img = "https://miniapp.scoringchina.com/admin/club/adm/images/players/";
$name = isset($_GET['name']) ? $_GET['name'] : "";
$photo = (isset($_GET['photo']) && $_GET['photo']) ? $pre_img . $_GET['photo'] : "./images/icon-010.png";
$type = isset($_GET['type']) ? $_GET['type'] : 2;

$image_suffix = ($lang === 'en') ? '-en.png' : '-.png';

echo '
<div style="width:100%;display:flex;flex-direction:row;justify-content:center;">
    <img src="'.$photo.'" style="width:100px;height:100px;border-radius:100%;margin-left:auto;margin-right:auto;margin-top:20px;"></img>
</div>
<div style="width:200px;height:auto;text-align:center;margin-left:auto;margin-right:auto;margin-top:5px;margin-bottom:20px;" class="'.$css_class.'">
    '.$name.'
</div>';

// 当type=1时输出部分
if ($type == 1) {
    echo '<a href="#" onclick="openmenu(1)">
            <img src="./images/my1-1' . $image_suffix . '" style="width:80%;height:80%;margin-bottom:5px;margin-left:10%;border-radius:10px;"/>
          </a>';

    echo '<a href="#" onclick="openmenu(7)">
            <img src="./images/my1-6' . $image_suffix . '" style="width:80%;height:80%;margin-bottom:5px;margin-left:10%;border-radius:10px;"/>
          </a>';

    // 因为该链接目前是禁用状态，保留可根据需要修改
    echo '<a href="#" onclick="openmenu(2)">
            <img src="./images/my1-5' . $image_suffix . '" style="width:80%;height:80%;margin-bottom:5px;margin-left:10%;border-radius:10px;"/>
          </a>';

    echo '<a href="#" onclick="openmenu(3)">
            <img src="./images/my1-2' . $image_suffix . '" style="width:80%;height:80%;margin-bottom:5px;margin-left:10%;border-radius:10px;"/>
          </a>';

    // my1-3-.png / my1-3-en.png
    echo '<a href="#" onclick="openmenu(4)">
            <img src="./images/my1-3' . $image_suffix . '" style="width:80%;height:80%;margin-bottom:5px;margin-left:10%;border-radius:10px;"/>
          </a>';
}

// 公共部分：my1-4-.png / my1-4-en.png
echo '<a href="#" onclick="openmenu(5)">
        <img src="./images/my1-4' . $image_suffix . '" style="width:80%;height:80%;margin-bottom:5px;margin-left:10%;border-radius:10px;"/>
      </a>';

echo '<a href="#" style="text-decoration:none;color:#fff;" onclick="openmenu(6)">
        <div class="' . htmlspecialchars($css_class, ENT_QUOTES, 'UTF-8') . '" 
             style="width:260px;height:50px;margin-left:auto;margin-top:40px;display:flex;justify-content:center;margin-right:auto; align-items:center; font-size:22px;border-radius:10px;border:2px solid #fff;margin-bottom:30px;">
             ' . t('logout') . '
        </div>
      </a>';
?>
